package ping.pay.me.framents;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import ping.pay.me.R;
import ping.pay.me.activity.UserCenterActivity;
import ping.pay.me.common.UserStatus;

/**
 * Created by install on 14/12/16.
 */
public class LoginFailFragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.user_center_not_login,container,false);

        final Button btnRegister = (Button)view.findViewById(R.id.register_btn);
        final Button btnLogin = (Button)view.findViewById(R.id.login_btn);

        btnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ((UserCenterActivity)getActivity()).setStatus(UserStatus.LOGIN);
                ((UserCenterActivity)getActivity()).setFragment();

            }
        });

        btnRegister.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

        return view;
    }

}